#!/bin/bash

image_path='http://mirrors.ustc.edu.cn/centos-cloud/centos/7/vagrant/x86_64/images/CentOS-7-x86_64-Vagrant-2004_01.VirtualBox.box'


function check_if_image_exists(){
    vagrant box list|grep centos7
    echo $?
}
vagrant box add centos7 $image_path
#import gpg key
rpm --import /etc/pki/rpm-gpg/*
# install epel repo
yum install -y epel-release

